package com.example.pet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;


//@EqualsAndHashCode(callSuper = true)//
@Data
@ApiModel(description = "宠物失寻中心实体类") //swagger注解 用于实体类 作用是说明实体类的作用 以及参数说明    作用于类上 用于实体类
@JsonInclude(JsonInclude.Include.NON_NULL) //jackson注解 用于实体类 作用是在返回json数据时，如果该属性为null则不参与序列化
public class Pet {
    @ApiModelProperty(value = "宠物id", hidden = true)
    @TableId(value = "pet_id", type = IdType.AUTO)
    private Integer petId;
    @ApiModelProperty(value = "用户id", hidden = true)
    private Integer userId;
    @ApiModelProperty("宠物爱名")
    private String petName;
    @ApiModelProperty("宠物定位")
    private String positioning;
    @ApiModelProperty(value = "宠物品种")

    private String species;
    @ApiModelProperty("宠物性别")
    private String gender;
    @ApiModelProperty("宠物年龄")
    private Integer age;
    @ApiModelProperty("宠物其他详细信息")
    private String other;
    @ApiModelProperty(value = "宠物图片路径",hidden = true)
    private String petPicture;
;


}